package com.example.rxjavademo.model.persondetail;

import android.icu.text.IDNA;

import java.util.Arrays;
import java.util.List;

public class Extra {
    private String[][] info;
    private String short_info;
    private String header_img;

    public String[][] getInfo() {
        return info;
    }

    public void setInfo(String[][] info) {
        this.info = info;
    }

    public String getShort_info() {
        return short_info;
    }

    public void setShort_info(String short_info) {
        this.short_info = short_info;
    }

    public String getHeader_img() {
        return header_img;
    }

    public void setHeader_img(String header_img) {
        this.header_img = header_img;
    }

    private String getInfo(String[][] info){
        String s = "";
        for (int i = 0 ; i < info.length ; i++){
            if(i == 0){
                s = Arrays.toString(info[0]);
            } else {
                s = s + ", " +Arrays.toString(info[i]);
            }
        }
        return s;
    }

    @Override
    public String toString() {
        return "Extra{" +
                "info=" +  getInfo(info) +
                ", short_info='" + short_info + '\'' +
                ", header_img='" + header_img + '\'' +
                '}';
    }
}
